﻿using System;
using System.Collections.Generic;
using System.Text;
//using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;

namespace Core
{
    /// <summary>
    /// 依赖注入容器
    /// </summary>
    public static class ServiceLocator
    {
        public static IServiceProvider Instance { get; set; }

        public static T GetService<T>() //where T : class
        {
            return Instance.GetService<T>();
        }
    }
}
